<?php
class main extends Front {

    public function index( $c ) {
        $limit = empty( $this->setting[ 'article_num' ] ) ? 10 : $this->setting[ 'article_num' ];

        $this->model->table = 'article';
        $result = $this->Pager( $limit )->findAll( null, 'isTop desc, id desc' );

        include $this->display( 'index' );
    }
}